package com.fs.service.bo.purchase;

import com.fs.entity.PurchaseRecord;
import com.fs.service.bo.customer.BoCustomer;
import com.fs.service.bo.room.BoRoom;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class BoPurchaseWithRoom extends BoPurchase{
    private BoRoom room;
    public BoPurchaseWithRoom(PurchaseRecord purchaseRecord) {
        super(purchaseRecord);
        try {
            this.room = new BoRoom(purchaseRecord.getRoom());
        } catch (Exception ignored) {

        }
    }

}
